package csdn;

public class String2Float {

	public static void main(String[] args){
		
		String str = "1.23";
		Float f = Float.valueOf(str);
		System.out.println(f);
	}
}
